package logger

import (
	"context"
	"gitee.com/DonHz/basic-go/webook/internal/service/sms"
	"go.uber.org/zap"
)

// 装饰器
type Service struct {
	svc sms.Service
}

func (s *Service) Send(ctx context.Context, biz string, args []string, numbers ...string) error {
	zap.L().Debug("发送短信", zap.String("biz", biz), zap.Any("args", args))
	err:=s.svc.Send(ctx, biz, args, numbers...)
	if err!=nil {
		zap.L().Debug("发送短信异常", zap.Error(err))
	}
	return err
}



